package com.tamo.ppresta.httpapi;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.tamo.ppresta.constant.API_CONSTANT;

import org.jetbrains.annotations.NotNull;

/**
 * @author yeyang
 * @name ppresta
 * @class name：com.tamo.ppresta.httpapi
 * @class describe
 * @time 2022/12/19 13:40
 * @change
 * @chang time
 * @class describe
 */
public class SendMessageApi implements IRequestApi {

    @NonNull
    @NotNull
    @Override
    public String getApi() {
        return API_CONSTANT.SEND_LOGIN_SMS;
    }

    /**
     * 语言编码(ESP 墨西哥语、CH 中文) 是
     */
    private String languageCode;
    /**
     * 应用编码 是
     */
    private String itemCode;
    /**
     * 手机号码 是
     */
    private String mobile;
    /**
     * 短信验证码类型 1注册 2登录 3修改密码 是
     */
    private String smsType;
    /**
     * 整合流量方公司编码 adjust appsFly 否
     */
    private String flowCompanyCode;
    /**
     * 整合流量方公司绑定ID gpsAdid(adjust),appsflyerId(AF) 否
     */
    private String flowBindId;

    public SendMessageApi setLanguageCode(String languageCode) {
        this.languageCode = languageCode;
        return this;
    }

    public SendMessageApi setItemCode(String itemCode) {
        this.itemCode = itemCode;
        return this;
    }

    public SendMessageApi setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public SendMessageApi setSmsType(String smsType) {
        this.smsType = smsType;
        return this;
    }

    public SendMessageApi setFlowCompanyCode(String flowCompanyCode) {
        this.flowCompanyCode = flowCompanyCode;
        return this;
    }

    public SendMessageApi setFlowBindId(String flowBindId) {
        this.flowBindId = flowBindId;
        return this;
    }
}